import request from '@/utils/request'
/**
 * get list ?
 * @param params {*}
 */
export function _get (params) {
    return request({
        url: '/branchStore/getBranchStoreByPage',
        method: 'get',
        params: params
    })
}

export function _getAllBranchStore (params) {
  return request({
    url: '/branchStore/getAllBranchStore',
    method: 'get',
    params: params
  })
}
/**
 * get row ?
 * @param params {*}
 */
//  export function _find (params) {
//     return request({
//         url: '/branchStore/getWarehouseByPage',
//         method: 'get',
//         params: params
//     })
// }

// 新增數據
export function _post (params) {
    return request({
        url: '/branchStore/addBranchStore',
        method: 'post',
        data: params
    })
}
// 修改數據
export function _put (id, params) {
    return request({
        url: '/branchStore/editBranchStore?idBraSto=' + id,
        method: 'put',
        data: params
    })
}
// 刪除數據
// export function _delete (params) {
//     return request({
//         url: '/warehouse/addWarehouse',
//         method: 'delete',
//         params: params
//     })
// }
